package com.lefeng.cockpit.datax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lefeng.cockpit.common.bean.dto.datasource.DataSourceDTO;
import com.lefeng.cockpit.common.bean.po.datasource.DataSourcePO;
import com.lefeng.cockpit.common.bean.vo.datasource.DataSourceVO;

import java.util.List;

/**
 * @author weifw
 */
public interface DataSourceDao {

    int insert(DataSourcePO dataSource);

    IPage<DataSourcePO> selectPage(DataSourceDTO queryDTO);

    DataSourcePO getByDataSourceName(String sourceName);

    DataSourcePO getById(Integer id);

    int deleteById(Integer id);

    int updateById(DataSourcePO dataSourcePO);

    int update(DataSourcePO dataSourcePO);

    List<String> listDistinctTypes();

    List<DataSourcePO> getAllDataSource(DataSourceDTO dataSourceDTO);
}
